Looks like macOS Catalina allows this functionality without having to resort to Dropbox. You can now 'Pin' files and folders in iCloud, which presumably keeps them local, regardless of your Mac optimisation.
Just have to mention that the "expert" answers in this thread are probably on the mark, but felt hostile and like gatekeeping. Throwing that critique out there, do with it what you will.
It’s harder to help you without access to your Workflow.
Debugging can already be hard with access to the code, and you’re asking us to guess yours from a description. For future reports, please read the Reporting Problems with Workflows topic, as it gives a nice overview on how to build an effective report.
But if I understood the problem correctly, it seems that you might be using an Argument and Variables Utility to save the keywords, and leaving the Argument part to {query}. Delete it instead (leaving the text blank), and nothing will be passed to the next node.