Add a size index for the cache entries (work in progress).