optimize zerocopy