Optimized filesize retrieval

This version will lagg your server, got to make the downloadmanager
download over a period of time.