If it's an interstate the speedo memory is retained in a chip on the speedometer motherboard cluster itself. Changing the speedometer will show the donor's bike odometer.
It can be reset to zero if so desired I have seen it done. Dont ask me how cuz I dont know but have seen a 2001 that was rebuilt and speedo only
Showed mileage sonce rebuild.