Switch to LruCache for entity cache.