optimize |,& on constants