Making static precompile an asynchronous process