performance fix for challenges api.