First steps to implementing caching