Merge "Fix StatsEvent memory usage for pulled events"