For high speed accelerators the current approach with a rewrite helper becomes a bottleneck. Instead it might be wanted to have a "inline" rewrite process.
In accelerators it is often required to trap any server generated Location headers and rewrite them to mach the accelerator environment. Especially so if URL rewrites have been applied to the request, causing the backend to see another URL than requested by the client.
An accelerator with URL rewrites might also need to rewrite any returned links in HTML content to match the rewrites applied in the acceleration.