Don't store stats for all samples in memory
Refactor bootstrap a bit