According to the law, witnesses are obliged to testify about what they know. The identity card is copied to verify the identity of the witness. You testified about the crime of intentional injury. You know the whole situation of the testimony, and your signature on the transcript proves that it is true. It will not affect your future life, work, going abroad, etc. On the contrary, it can prove that you are a responsible person and have a good reputation. Don't be afraid of decency!
It doesn't matter whether you save it or not.