Added PermaCacheExpireInDays to Deserialize
Fixed setting of AutoResetEvent only when not run in AsyncMode
Removed unused code, added code comments