Made filesystem interface and I/O interfaces thread safe.
Added direct local cache access feature. (untested yet)