Avoid a bunch of copying/conversion in script/sign