Transform hash instead of reading the full file to generate a patch