Every time a train starts and stops, it draws or dissipates several megawatts of energy, enough to power more than a thousand homes. This happens thousands of time per day, every day, in commuter rail systems across the country. In fact, peak demand from New York's rail system could power Birmingham, Alabama.
A more efficient system would hand off power from braking trains to those leaving the station. Modern trains run their electric motors in reverse to slow down then release the energy as heat or into a grid ill equipped to absorb the surge. Energy storage could eliminate the problem.
Flywheels, an old technology finding ever more modern applications, may be that storage solution. Large spinning discs, held in frictionless magnetic bearings spinning at 20,000 to 50,000 revolutions per minute, are able to store energy, and send it back within seconds.