Smart RLE