Optimize send_inputs to use zero copy