optimizations for large package lists, RT#28526