See https://code.google.com/p/modpagespeed/source/detail?r=3764. It's an optimization to reduce memory utilization. It might be better though to pipe this through the SystemRewriteDriverFactory instead of having NgxRewriteDriverFactory and ApacheRewriteDriverFactory have separate implementations. Thoughts @morlovich?