parallelize code block encoding