Move more code from Python to the SQL server
Plagiarism file_hash retrieval reduced to a single query. Terribly slow, however
Optimized. All plagiarism detection among 60k uses is under 1 second