Use IdentityHashMap for attachments
Remove unused option
Add option to immediatly dispatch to a worker thread