I would probably pull it from the UC4 database with a VARA SQLI object. It is still a costly call to an external resource though.
I have written an application (outside of UC4) that advanced its own timestamp value for the sake of generating unique data keys. Doing a "add +1 to this value" runs much faster than calling an external resource.