Do a relatively cheap check on the cache before updating it.