Revert "Only set the magic for primary key _id indexes"

This reverts commit dd7b3fd5a3a292cdca0dd75e7cbef197badeb74f.