Add first_extent method
Write back cache file when close the file
Close cache file when close the file