Optimized file system class.
Various fixes for newest optimizations.