updates usage of MemoryCache to only use one global instance.