How about a flywheel system like this:
Flywheel <-> AC Motor <-> F-Controller <-> D-Controller <-> AC Motor <-> Drivetrain
Power transfer to the vehicle is achieved by putting F-Controller in regen mode and D-Controller in power mode.
Power transfer to the flywheel is the reverse: D-Controller goes in regen and F-Controller goes in power mode.