Move get_by_sites cache load out of band