Updated segmentation and compressed JSON storage