Faster index implementation