speed up leaderboard query