serf: split out all operations for key in internal_query.go