AMENDED AND RESTATED DOMESTIC SECURITY AGREEMENT