Optimize CompilerPass classes