What kind of optimization are we talking about? SEO?
If its all front-end code you see in Dreamweaver, you'll probably end up cleaning that when you do a next major redesign, you shouldn't waste time on it that you could be using to enhance your product in other ways.