Foundation for dimensions based optimization.