It’s best if you can understand and derive the formulas. However, while doing CFA, I made it a point to write down every formula that is not completely trivial. Then, you can just review that list until you memorize everything. I probably read that list and recalled from memory 50 times or so.