Secondary indexes lookup via indexesOf

- Key of length 2 looks for primary indexes while keys of length 4 looks
  for secondary indexes.