How energy accumulation and disposal affect the rates of reactions