for the sake of vs thanks to

for the sake of

prep
  • Because of; out of consideration for; in the interest of. 

thanks to

prep
  • Because of; normally used with a positive connotation, though it can be used sarcastically. 

How often have the words for the sake of and thanks to occurred in a corpus of books? (source: Google Ngram Viewer )