It would be a better approach to utilize the built in `IMemoryCache` infrastructure for caching. Also, it would be much better to add support for `IDistributedCache` opt-in.