reduce mem copy ops