Use md5 hash for transient names so that the lengths are valid. Closes #4851