Eliminate redundant buffer copies.