added memory cache.