Attempt some memoization, please test and report pgatt, judge