Hmmm, why do you need to set a thread local? Thread local usage should be limited to the bare minimum...