perf micro optimization on block directory parsing