reverseproxy: reduce allocation/CPU overhead in request hot paths (#7925)