I suggest reading the following thread (especially the solution): What's the best way to use openFHE on two sides?