optional state averaging in stochastic solvers