Check if the value from the cache is ok