Added an index on invariant_integer, this increases file size but speeds searches dramaticly.