copy of objects in java should be as fast as possible