Inject uiPerformanceService into CacheFilter and call isEnabled() directly on it in order to avoid code duplcation.