Given there is no limit (I think) in the number of dashboard alert conditions this can become an issue. A possible solution would be to generate longer RefIDs (if that doesn't have other implications).