Add LRU cache for sketches.