Flywheels really should be used for this type of thing, not batteries.
Regarding efficiency, the following is from a 2003 report:
"Various losses in the system, including bearing losses, and electrical losses (stator losses, power converter losses), contribute to the overall conversion efficiency. The power electronics switching losses usually dominate the total losses, and the overall efficiency is a function of power, usually > 80% for power in the range 10% to 100% rated. The maximum efficiency quoted by some manufacturers is 96%. This gives rise to a typical maximum in-out efficiency of 92%."
Wind and solar plants “introduce some additional variability that you don’t have with traditional thermal units,’’ Mr. Zaharuncik said. With a system that has a lot of renewable energy generators, he explained, “you need some other kind of resource that complements it. ‘’
I'm surprised that flywheels aren't a bigger deal because of wind and solar power. Why doesn't someone make a flywheel unit the size of a major appliance, incorporating inverters and regulating hardware, for home wind and solar?
LiFePO4 batteries have lifetimes exceeding 15 years (no one really knows how long yet -- they were invented in 1996). Their efficiency is well above 90%. Its raw material costs are less than NiFe.
Unrelated, but this led to an interesting thought for me. When flywheels fail, they shatter into explosive shrapnel fragments, killing everyone nearby. When shipping containers full of LiIon batteries fail, they blow up and leave a crater the size of ... well, big, probably.
Why such energetic failures? Because that's what they do, concentrate a lot of energy all in one space. Electricity and explosions are both energy.
I know this is obvious but it made for an interesting few seconds of mental dialogue so I thought I'd share :)
On a side note, an engineer at our local power plant once told me that the inertial energy available on "the grid" was sufficient to cause one of the steam turbines at our local power plant to "jump out of the floor" should someone fully engage it out of phase.