Optimize AOD compilation