Expanded Mind is awful (+5% max mana mastery)
On Ryze, the champion it should work best on, putting points into the level scaling / flat AP portion of the offense tree gives you better damage at every point in the game. I ran the math, that's a fact. Stop running Expanded Mind, find a point you can spare, and put the points into Arcane Mastery. Your early damage will be better and your late damage will be roughly the same (but still better unless you build a mana item besides RoA/Seraphs/Frozen Heart).
If you actually need that 5% mana on Ryze to save you from running oom, I don't know what to tell you besides stop staying in lane for 40 minutes at a time. If you trim it to 39 minutes, that's good enough.