Not necessarily for this PR, but could we pass a CompilerContentsProvider instance in while instantiating Compiler and reuse it per compile?