a few perf tweaks
another perf tweak
parallelize code block encoding