Reworked after review. Part 1.

Signed-off-by: Attila Vamos <attila.vamos@gmail.com>
HPCC-9157 - Dfu server partition calculation not efficient when more than 2M
file sprayed

Updated based on the comments.
The publishHeaders reduced in one line of code therefore removed.

Signed-off-by: Attila Vamos <attila.vamos@gmail.com>