change buffer size to match rle threshold