Minimize copying between host and device.