Apologies, other time commitments caught up with me and I've not had a lot of joy with creating an efficient algorithm for the select 24 unique from candidate list whilst ensuring 10 unique cache types part of the problem.
I note you added a checker I'll be extremely interested to see how you tackled this problem as it lacks an efficient solution. Your point re: comment vs answer is well made and I'll know better in future, apologies.
Edit: Typo