Avoiding O(n^2) loops to find regions by name.