SECOND AMENDED AND RESTATED MASTER TRUST