Added ability to set the cached value for a constraint