Updated API design: return hash on operations that modify files