Set flags only once in an Item constructor to speed up initialization