Removed unnecessary cache size check