If the US hadn’t systematically defunded and outsourced the court system, lenders could take defaulting debtors to (small claims) court, and they could check court records before lending money.
That would completely eliminate the debt collection industry, secondary debt markets, credit reporting agencies, and so on.
But, raising taxes to pay for it is “too expensive”, so we pay orders of magnitude more in credit card processing fees, credit report monitoring, etc.
I agree the courts have issues. Courts have given me (Pro se) faslse information and refused to answer procedural questions. In what sense are you referring to outsourcing? Could you explain you outsourcing view