SECOND AMENDED AND RESTATED LOAN AGREEMENT by and between