working on memory cache