Faster compilation of `mode/2` directives.