Add very rudimentary memory cache.