incomplete LRU cache implementation (not fast enough)