This is ground work to allow Jiffy to yield back to the scheduler. Creating a decoder resource will allow for the necessary state to be carried across NIF function invocations.