Fix: consider trial_attachments when caching trial