hokud: improve topk support