MAY 2012 AMENDED AND RESTATED SECURITY AGREEMENT