Separated the LRU cache implementation.