Sending Secure Zwave Commands

In ST, it used to be required to manually code security encapsulation of z-wave commands if a device was securely paired, however I believe this was abstracted and is now handled automatically by the platform.

What is the situation on Hubitat? Is security encapsulation automatically applied by the system or do I still need to use some code like this...?

private secureCmd(cmd) {
    if (getDataValue("zwaveSecurePairingComplete") == "true") {
		return zwave.securityV1.securityMessageEncapsulation().encapsulate(cmd).format()
    } else {
		return cmd.format()