IAM Encoder api extended
internal updates in Unique for speed