Pivot optimization