More efficient references_in_taxt for faster updating