Optimize RapidJSON staistics