Various helpers to pass trusted data to untrusted environments and back