Optimised id copying slightly