Put the cache with the right key when using a tracking function