interleave flags and data buffers to improve cache performance