They are cumulative, it doesn't matter if you spend them, but count how many you had before spending them if you are going to spend them.
Here is a series of videos that indicate how to overcome each level, revealing both its secrets and the minerals that are in each level:
https://youtube.com/playlist?list=PLoxV-no_tlqxag7EXU49bu9dp...