Replace byte[] with Slice for keys.