Add parameter to getAndSet to reset the value
Don't cache misses in getAndSet