sparse-index: convert from full to sparse