Kiavi is one of the nation’s largest private lenders to residential real estate investors.