Reducing model predictive control implementation time