Replace basic cache with LRU cache