Avoid unnecessary cache writes