internal/v4: add caching for non-fully-specified ids too