First optimizer plugin skeleton / ideas.