Remove unecessary apply optimization