Better document download size calculation