Make sure Mongo has an index on the keyField


Change-Id: I95bc4a13fb546283fedbeaf8e4e2bed2c931c6e9