Redundant deepcopy is removed by performance reason