Added beforeCallApiClient to allow for cache-relevant updates