Track maintenance is the single biggest cost sector of rail lines in good condition even on very low slopes. The ballast needs regular inspection and replacing even without adverse weather or underbed problems, and the track can develop cross fall or slew and/or creep in transverse and longitudinal directions over time, sometimes taking subsurface layers with it. Every other kind of gravity storage makes more sense on paper than this, even the tower crane rearranging concrete cubes proposal.