Optimizing assignment to questionIDs to answers.