Use something like this to easily enable serialization of witness generation code
CC @howardwu, this might be relevant for easily storing predicate witness generation in for DPC, so that predicate writers can send a single package for the circuit, instead of source code.