Added LRU caching in memory, and TTL for both caches