Since he has to completely memorize the formula for each spell, he probably could have skipped over several mid-tier spells to save time. Like if he only learned level 1, 4, 7, and 10 spells (for example), that would only be 24 if he covered all 6 types.
Or, maybe he figured out how/why the...