To avoid recomputing objective and constraint functions for states already calculated.
To avoid recomputing objective and constraint functions for states already calculated.