greedy memory caching