Wouldn't that information get lost if you use a straightforward hash of string -> string?