Use LRU for memory cache. Closes #1682