optimized cp(), 2x performance increase for large files