FIFTH AMENDED AND RESTATED MASTER INDENTURE DATED AS OF OCTOBER 18, 2016