This is very similar to bug 1566825, and fixing this will help with that bug, but they aren't quite the same. In the other case, the problem is with slowly fetching IDs from a largish set of SPPHs, whereas this is with fetching IDs from the associated BPPHs.