Added file handle cache to reduce frequent file stat query and open/close