Improved the geolocation speed with memoization.