Don't readAll the whole file into ram to md5 it - the advantage of using a tempfile is so that users don't need two models worth of memory to download additional models
Atomically move the tempfile into place after verifying it when possible, saving time and avoiding unneeded I/O and disk space usage
readAll
the whole file into ram to md5 it - the advantage of using a tempfile is so that users don't need two models worth of memory to download additional models