HUGE performance improvement to find Dirichlet prior, using data aggregation trick