update the cache content on hit
rounding errors seem to cause acos to return nan