NINTH AMENDMENT TO SECURED CREDIT AGREEMENT AND CONSENT AND WAIVER