Give credit to klacointe for sparse index