Avoid temporary model creation in `set`