Improve performance/reduce allocs of bytespipe Upstream-commit: 806a8e22b96900bc1db5541d316c1cd91c493bea Component: engine