Fixed #7116 -- Optimize RequestContext construction