Sadly, the efficiency gained from being able to run the engine at a fixed RPM is lost in the conversion to electricity and back. This technique has been tried a few times but it never works out in the end. The only time it makes sense is if you have a turbine engine, but since turbines have fairly lousy efficiency to start with this only helps get them back up to the baseline.