prefer segment_size over hardcoded values