The only composite gear with a foam core I know of were on the very early Pulsar. they stopped making them that way and switched to a solid ones.
I think there is too much stress and bending movement to have a core like that in a landing gear spring, I myself wouldn't even try it.