instead of md5'ing the file contents use file mtime and file size