Defect: fix performance issue relating to how we determined ClosingDate for an Application.