Insert, update, delete docs via SGW REST API vs. N1QL against the CB cluster

I have a process that performs bulk updates of docs to be synced to mobile devices. It currently uses the REST API for all operations, but this is quite slow, as it has to look up revision IDs in order to update or delete docs. Would it be safe to do this instead using N1QL against the CB cluster directly? Could I avoid the need to lookup revision IDs that way?

Enabling shared bucket access allows you to update documents directly in Couchbase Server.
https://docs.couchbase.com/sync-gateway/current/shared-bucket-access.html