Avoid division by zero if the cache size has not yet been set in a shared cache.