This would give significant performance improvement, see discussion in https://github.com/JuliaDiff/DifferentiationInterface.jl/issues/774 .