Make files not locking by default and improve lazy opening.