Evaluate key flag to determine encryption key