Safer stored function execution.