What we usually do when we have a problem is to scratch our head for a few seconds, some idea pops up and we’re happy that the problem is solved and that we now can move on to implement it. Since we are experienced programmers with a lot of experience, we are convinced that the solution is a good one.
It is possible that it is a brilliant solution, even the best possible one, but probably not. A far better way, if you are interested in finding a really good solution, is to come up with five different ways of solving the problem and then pick the best one. My experience is that it is not the first one that you end up using.
This is a very simple method to use with low cost that improves the quality of your ideas.