Turn off journaling and per-commit file system synchronization to increase the write performance
Close the database properly on exit
Collect source files in a queue for processing (preparation for multithreading)