Cache manager: Check if provider is valid before calling isCached.