It's really frustrating how every single person I know who got (really) good at math or programming got there the same way, but never even hinted about it to me till I saw them use the same techniques. The clever ones figured out the important parts faster and spent more time on repeating the common idioms, theorems and required prior knowledge (e.g. the sqrt(a/b) = sqrt(a)/sqrt(b) piece for you) instead of the problem or spending too much time on conceptual understanding
The really important part for me was to rip these small but critical parts out and form somewhat like mental workout routine that I kept repeating multiple times per week. By week 5/6 I could solve the same/similar/related problems which weeks ago took me several minutes with ease and I had more brain power left to think about higher level and related concepts and techniques that formed more connections, making the experience a lot more fruitful, productive and faster. Without that mindless, disciplined mental routine to get the basic and critical stuff in muscle memory, I do not believe I could have made it through.
Good luck.