Precomputation and aggregation of cell distributions in histograms.