Leveraging Multitime Hamilton-Jacobi PDEs for Certain Scientific Machine Learning Problems