Created by: rafax
Refactoring to accept multiple Org identifiers in one call to DB (to avoid SELECT N+1).