move some code which was executed for every skipped MB so it is only executed