Dev/wo 417

it would make sense to do the or part before doing the round trip to the server, that saves the hassle of a complete round trip that will produce 404 anyway.

```
if (localKey.imported) {
    callback(null, localKey);
    return;
}
checkKeyExists(localKey);