So this covers one league min year, all his arb years and one free agent year? Very nice if I'm reading his BBREF page correctly.
Deals like this are great for teams like Tampa who have no hopes of affording such a player once he hits free agency. You can now afford to keep him for all 5 years if you want, or trade him for a king's ransom when he has 1.5-2 years left on his contract. (Cost controlled ace level pitchers are kinda hard to come by)