fetch all old location ids at once for case count queries
fetch all old location ids at once for case count queries

dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq