Handle worker class as string
Check for encrypted value after deserializing