Implement safeprime == 11 % 12 speed hack