Do you have a better solution in mind?
If not, then the only available solution is also the best solution, no matter how suboptimal.