Adding function checkedCachedCompile to comprehensively handle compiling...

... with cached checks to a file.