Improved performance of copy builtin.