improve performance when getting the next unique slug of a content entry