improve peformance of parse_unit_flag
add flag cache to boost parse_unit_flag performance
adjust column for ENCOUNTER_START/END