Nit, but I'd rename `keys` to `key_prefix` or just `prefix`.