I'm no cap expert, but spotrac says that Joe's cap hit in 2017 is $24 million. Right next to that is the dead cap, which says $47 million. That is nowhere near the 18.5 million that you are saying. 47 million in dead money is not manageable at all.
And again, if you think that you could run this team, go play Madden and see how well you could do.
http://www.spotrac.com/nfl/baltimore-ravens/joe-flacco-4000/