Switch to IDs in data attributes for model cache lookups