Improve performance of the PRC
Simplify rotation code of the PRC