Fixed detection of non existing files in cache. Faster reply