Remove file locking with synchronized, open new file each time
Tweak ref and collation key caching, share collation key cache between prefix and whole word comparators