Caches attachments on form validation errors