added memory cache for testing