Implement serialization for jobs to reduce message size.