Implemented cache.