             key = getPeriodCacheKey(keyPrefix, aggOp: .DiscreteAverage, period: period)
         }
 
-        if let _ = aggregateCache[key] {
-            log.warning("Cache hit for \(key)")
+        if let aggArray = aggregateCache[key] {
+            log.warning("Cache hit for \(key) (size \(aggArray.aggregates.count))")
         } else {
             log.warning("Cache miss for \(key)")
         }

        }, completion: {object, isLoadedFromCache, error in
            log.warning("Cache daily result \(key) \(isLoadedFromCache)")
            if let aggArray = object {
                self.queryResultAsSamples(.AggregatedSamples(aggArray.aggregates), error: error, completion: completion)
            } else {
                completion(samples: [], error: error)

                        failure(error)
                        return
                    }
                    log.warning("Caching minmax aggregates for \(key) ")
                    success(MCAggregateArray(aggregates: aggregates), .Date(self.getCacheExpiry(period)))
                }
            }
        }, completion: {object, isLoadedFromCache, error in
            log.warning("Cache minmax result \(key) \(isLoadedFromCache)")
            if let aggArray = object {
                log.warning("Cache minmax result \(key) size \(aggArray.aggregates.count)")
                completion(aggArray.aggregates.map { finalize(.DiscreteMin, $0) }, aggArray.aggregates.map { finalize(.DiscreteMax, $0) }, error)
            } else {
                completion([], [], error)
