Dramatically speed up the calculator.getMaxDueDate()
Perf improvements in resource gathering.