Make kumite graph query fast

When the experiment gets really big with a lot of participants, this little change can shave more than 20% off query time.