Two experiments
The first experiment was to determine whether or not further cooking of a basic sauce would change the flavour.
I reserved some of the basic sauce I had already made, and which had been cooked for a total of 6 hours. I then simmered the remainder for a further two hours. After warming the reserved sauce to the same temperature as that whch had undergone the extended cooking, I compared the two. There really doesn't seem to be much difference at all. Certainly the colour and texture hadn't changed.
The second experiment was to attempt to determine what difference it would make if the onion was browned before it was boiled. I made a puree of onion, garlic and ginger, in the same proportions at the original sauce. I fried some turmeric and ground cumin for a couple of minutes. I then added the puree, turned the heat up, and stirred continuously until the mix was dark brown. At this point the mix tasted of nothing but caramalised onions - that flavour swamping all others. I added a little water and simmered this for two hours. At the end of that time I tasted the result, and found it hadn't been changed by the boiling.
Adding a samll quantity of this onion to the sauce made it a little sweeter, and gave it a fraction more depth.
The first conclusion I reached was that cooking for much more than 6 hours doesn't make much difference (although, people with more sensitive tastebuds may spot something).
The second concusion was that a certain amount of browning of the onions will add a little depth of flavour, and a little sweetness. This may or may not be required for the recipes you wish to make with the basic sauce. I think on the whole it would probably be better to brown some onion for the particular dish you are making, rather than have it present in the basic sauce, but it depends on what you want to tend to cook.