Promote usage of references within some functions called within tight loops