precompute data stats if possible to avoid loading data set