HKS: Efficient Data Partitioning for Stateful Streaming