The spring is deformed when compressed (not only its length but also its roundness), is it possible to replace it by , say...

The spring is deformed when compressed (not only its length but also its roundness), is it possible to replace it by , say, a curve to keep the size of the bars of the spring, event it is compressing ? I have looked for a way to do that using empties but haven't found.