I believe that the Social Security and Medicare programs are entirely unconstitutional. I recommend reading this article https://tenthamendmentcenter.com/2010/08/13/is-social-security-constitutional/, which supports my viewpoint.
Ideally, I would determine the contributions each individual made into Social Security and calculate the average annual returns for their participation period. After deducting payments taken, I would then allocate this money to the respective owners or to the private investment of their choosing. The federal government would subsequently keep out of social programs.
However, until the long-term vision is realized, to address the current insolvency issue the elimination of the maximum wage base would be necessary.