Optimize copying.