Add sparse matrix state + redis impl