Only try to apply static binding for `::/2` and `^^/2` calls when the `optimize` flag is turned on