FIX: AbstractFactory clearstatcache added when storing attachments