Added in-memory caching.