Place the peanut butter in a bowl and add 1 1/2 cups of the stock and the tomato paste and blend together to make a smooth paste.
Spoon the nut mixture into a saucepan and add the onion, ginger, thyme, bay leaf, pepper powder, remaining stock, and salt if using.
Heat gently until simmering, then cook for 1 hour, stirring occasionally to prevent the mixture from sticking.
Add the yams, cook for another ten minutes. If using okra, add it now. Simmer until yams are tender.