Stats optimizations without threshold
Merge branch 'optimize_stats'