replacing disk cache with simple memory cache