In a small bowl, whisk together the ketchup, brown sugar, and sea salt. Set aside.
Make the Quinoa Loaf
Preheat the oven to 350F, and line your loaf pan with parchment paper (NOT wax paper).
In your blender, puree the cashews into a flour. Think the consistency of cornmeal.
Combine the cashew meal with the quinoa, lentils, onion, nutritional yeast, ketchup, flax meal, and soy sauce. Mix well, then spread into your loaf pan, smoothing out the top with your fork or the back of a spoon. Slather the Ketchup Glaze over the top.
Bake for one hour, then let the loaf cool for 15 minutes on the counter before you gently pop it out of the pan with the parchment paper and serve.
If you don't like to use canned beans, you can make your lentils from scratch. In that case, use 1 ¾ cups cooked green or brown lentils. Do not use any other type of lentil -- I can't guarantee that your loaf will turn out.
Do not skip the cooling time! If you try to pull the loaf out of the pan and slice it before it cools, it will fall apart.