Text this: An optimized cubic B-spline algorithm for high-precision approximation of nonlinear transport phenomena