beat the system vs gain mastery

beat the system

verb
  • To circumvent rules, regulations, or conventions, usually by finding loopholes. 

gain mastery

How often have the words beat the system and gain mastery occurred in a corpus of books? (source: Google Ngram Viewer )