la: minor optimization on SmartGradientAccumulator