Decrease the local_dominant_count complexity