Improving proxying performance: moving buffer handling into connection worker