It is now possible to define the _key attribute of a document before saving it:
doc._key = "whatever"