interleave flags and data buffers to improve cache performance
parallelize code block encoding