Add basic in-memory cache.