Recalculate memoized function when max score changes