Performance improvement for challenges api.