It would make more sense to use the EAN 40 in your tank during the actual dive, rather than use it as a hang-tank during your safety stop.
Any level of O2 higher than 21% in a hang tank will indeed give you some added off-gassing than plain air. But the difference, for NDL diving, is rather insignificant.
So your friend had good intentions, however his math was way off. The main benefit of a safety stop is to give your bloodstream a chance to scrub your body of compressed nitrogen, before your return to surface pressure.
The safety stop itself is much more significant than whatever is in the hang tank.
If you use EAN 40 in your tank, then you should not dive deeper than 100 ft.
And with EAN 40, if you drift down to 130 ft, then you would be dangerously close to experiencing an oxygen toxicity siezure. And any deeper than that and you would probably die. So you need to be careful about what you are doing when you have EAN 40, or any other nitrox, in your tank. They teach you all about this in a nitrox class.