Don't iterate on the cache for every call to size