I didn't look at the file, just the diff; so, it may be obvious in context. (e.g., if there's no way to avoid the inheritance calc and doing it proactively squelches recomputes)

Since you're cloning and don't want to store inherited values in the clone but leave them "unset", why are you forcing metadata inheritance?