[minor] Do not copy objects when not needed