My understanding is that such tricky side-channel free code ideally should not be directly written by humans. I know of at least one project that has made a lot of progress on this idea, although they say the crypto primitives are still at research level:
https://www.microsoft.com/en-us/research/blog/project-everes...