This "discarding after test" is already and automatically addressed in the education: high school repeats things learned in previous schools and builds on those. Our high schools also have large final exams that require one to be able to understand the whole curriculum of the subject. The grade measures your memory, and understanding because you cannot just memorise everything. The same is true for all education levels.