Refactored RedirectMemoization.
Renamed RedirectMemoization to PermanentRedirect
Memoize only permanent redirects