speed up rle copy operation