Avoiding the latency of doing multiple queries to the database to ensure...

Avoiding the latency of doing multiple queries to the database to ensure the package id is there. Instead, do a single query that gets of all the IDs.