Where is the "Generate automatic URL alias" setting stored?
I was under the impression the "Generate automatic URL alias" setting would be saved in the database for each node. That's not the case.

Instead I just had to change the pathauto setting from "Create a new alias. Delete the old alias."   to "Do nothing. Leave the old alias intact."  (credits)