Update the cache counters when accessed.