Added support for async writes for the File store. Fixed some small performance issues.