attachments getter optimized