Cleaner coordinates mapping with memoization