In order to improve performance for a larger number of redirects, instead of a standard array being generated an associative array (keyed on the 'from' URL) is generated which allows a direct check rather than needing to iterate through a large list (especially considering this would be done on each page request).