I don't know exactly if it will work. But I had a K750i cid36 and flashed it with a MAIN and FS that was made for K750i cid49. It worked...
And I was able to reverse it.
But I can't say anything about cid51