switching from thread level token caching to process level token caching