Remove unnecessary buffer copy.