Workaround for bug using cache.size() on cache object.