Turning M-step updates into sufficient statistics calculations