Optimise rle decoding