There are ways to do that step that faster. A commonly used method for that step is called OLL. OLL, a step of a more advanced method, has an algorithm for each situation that you could encounter. After that algorithm is done, all of the last layer's colors face up; this is called orienting the last layer.
A much easier to learn version of OLL is 2-look OLL. This approach completes the orientation step using two sequences of moves (algorithms) instead of one. Doing it this way, you only have to know 10 algorithms; full OLL uses 57. If you want to know more about it, you can watch this video tutorial by heiowge: Part 1
, Part 2
. There is a third part that goes over 2-Look PLL.
Hope this helps.