Make cache resilient to clock going backwards