AMENDMENT NO. 2 TO AMENDED AND RESTATED SENIOR SECURED CREDIT AGREEMENT