Clamp cache size to virtual size in case of excess cache memory