Improved Spell Mastery (3.5e Feat)
From D&D Wiki
 Improved Spell Mastery [General]
The character can spontaneously cast spell mastery spells.
Prerequisite: SRD:Spell Mastery
Benefit: The character can spontaneously expend a prepared spell or spell slot to cast a spell mastered spell of equal or lower level.
Normal: The character must prepare all spells before they can be cast.
Special: This feat costs 2 feats; if there are not two feats available (magic oriented bonus feats can be used for this) then the character must sacrifice their NEXT general or magic oriented feat that they would get. (GM discretion)