Store compose cache ID in attachment objects