If the optocoupler provides access to the base of the transistor like the CNY17 does, then there are various options to speed it up if additional signal conditioning is added. Usually this takes the form of resistance between the base and emitter to lower the storage time but since this lowers the gain, additional external amplification is needed.
For slow applications, this is not needed.