A tiny LRU cache implementation and decorator