Refactor module_urlsize to stream content instead of downloading it every time