Fixing misc crashers
Making FD cache thread safe, fixing bugs