Point taken...
Embedded SQL isn't the "Devil" in and of itself, it's just a slippery slope that leads to poor maintainability, IMO.
I guess you could design an NVO that exposes that one function and then implements it as embedded SQL, instead of a datastore.