Get size from head_object, not from running len() over the content.

This is a much faster way to get the size of an object.