Most of these are cast to uint and its using about 2-3% cpu in these casting operations, they can just be native enums. Also HasAnyFlag is a bit reduntant with enums with the Flags attribute as enums have HasFlag method.