Fixed estimateSegmentsBasedOnSize should base on the value size, not chunk