Copy optimization.

Copy optimization.