Building a simple cache for applications