Proposal for a simplification of the cost model

The existing cost model is missing the ability to describe all types of plans.
With this change we try to address this and make it easier to have per-plan optimizations.