This was needed a long time ago in the original implementation when the function being called here was hotter than it was before, but nowadays this function isn't hot as it's protected elsewhere from being repeatedly called, so the caching thread local is no longer necessary.