Eh I dunno it's kind of a mess.  `optimize` in general shouldn't create errors, but now I remember it does sometimes.