Compute mean and variance at load time.