Calls to user-defined or third-party functions cannot be vectorized and will cause simulations to run slower.
Workaround: There is no workaround for this case other than minimizing the use of these functions.