Vastly speed up generate_all_slabs by only grouping within same miller index.