Resizes file to reduce loading time.