The answer is not the problem; it's the question. A non-omniscient but intelligent creature will always find questions which are difficult to grapple with. To posit this obvious fact as evidence that any omniscient deity must be malevolent is just plain silly once you see the obvious necessity of such mysteries.
Theodicy is only a major topic (of contentious debate and scholarship, that is) in Western religious thought, because it arises as an issue when certain prejudices about the innate capacities of the human mind are fully sublimated into a religious matrix. If a belief system posits a divine being as "perfect" (by whatever standard) and also posits a creation or universe which is somehow separated from that divine presence, then it necessarily follows (at least for certain types of divine being) that the entities which are separated from the divine must exhibit their lack of perfection, or else they would be divine (again, for certain types of posited deity).
Frankly I find the insistence upon categorical attributes of a deity quite comical, in light of the obvious limitations of logic. An entity orthogonal to the universe is orthogonal to Reason, instantly making most theological discussion moot. That is not to say that one can't contemplate grand questions, but such contemplations are always a reflection of our own imaginations, rather than truly a reflection of anything transcendent. After all, transcendence transcends. (If it truly exists, that is...😉 - of course that is abusing the word "exists", but ironically it was necessary for clarity to use the wrong word instead of the right word: transcends.)
You can also just write that a limitless entity does not have to have the same perspective as a human being. And therefore, from it's point of view beyond good and evil as seen from a human perspective...
I wrote a text similair to this in a dailytech post once :
If you live good and honest life, those who are important to you will enjoy the benefits. Think of them, not of god.
If god does not exist, you have still lived a beneficial life because of the joy you bring to those who are important to you.
If god exists and is a kind god for humanity, then you still lived a beneficial life because you bring joy to those who are important to you. What happens after you died is between you and god. Perhaps he will bring happiness for those who are important to you.
If god exists and is an evil god for humanity, then you still lived a beneficial life because you bring joy to those who are important to you. When you die, what ever happens is between you and your evil for humanity god. And if you have bad luck, he will bring suffering for those who are important to you.
So you see, if you believe or not in a god, you can still make the decision to live a happy and just life. Something that will live on in future life. And that is the simple truth. A part may even be epigenetics.
A god in your reasoning is still an evil god if that god decides to do with humanity whatever it pleases, just because it can. It still is from a human perspective.
A hypothetical situation : Because our solar system might just be in the way of another species, and that a very powerful entity comes to wipe our solar system out of existence. Now first ,that entity comes to us that we must accept it as our god. Since it is omniscient compared to us it has a certain perspective but is it just for us ? No but since it is in our eyes a divine being, we accept all it's decisions as good.
In essence you are doing no more then justifying for example ritual offers...