Remove unnessary copy to reduce GC pressure and other perf issues