Cleaner code for parallelzing policy compilation in parallel