Optimize statistic summary serialization