Use thread-local in RequestContext::getStaticContext