Tuning the attachment repository