Adding cardinality optimization for global index