as side effect vs in passing

as side effect

in passing

prep
  • Incidentally; as a brief diversion from another topic etc. 

How often have the words as side effect and in passing occurred in a corpus of books? (source: Google Ngram Viewer )