Title::nameOf can be used to retrieve the prefixed DB key associated with a page ID. It currently has no known callers[1], and it accesses the global state (via wfGetDB), which should be discouraged.
Any reason it can't be deprecated and removed?
[1] https://codesearch.wmflabs.org/search/?q=nameOf%5C(&i=nope&files=&repos=