Use thread local variables when it may be changed from parent thread