Use thread-local TC for codegen and relocate translations into the TC