faster method to get the segmentation names (getting all annotation values can be too slow)