Remove unnecessary temporary copy of input buffer.