Compute the etag only once