SSP-1436 - Fix N+1 performance issue in caseload search result and other
bugs found during demo