Either serialize capacity_index as well, or come up with a better way to increase/decrease size to convenient values