read whole mrb file at once to calculate correct padding offset; ref #2630