improve performance of get/set in SRSortedDictionary. Only rebuild sorted index when needed