TS/JPM: further optimization by making copyTo run over original file instead of using getMultiple