Reduce block nesting and double data logging