Change the cache in `CachingOperationInvoker` to be a reference based map and also clean stale entries when a specific threshold is met. Fixes gh-28313
Change the cache in `CachingOperationInvoker` to be a reference based map and also clean stale entries when a specific threshold is met. Fixes gh-28313