The speed of the scanning procedure has been increased by tweaking SQLite settings.