Regarding optimizing the outline

if it’s difficult to optimize the entire outline, at least the extra points on a straight line can be optimized first.

“Tidy up paths” in the Path Menu should at least do that.
Other that that, you need to remove extra nodes on by one.