fix perf edge case with multiple large packages not just one, RT#26097