Read sha1 from metadata to test if the file needs to be writen on disk.
Update doc and sample config file.