Hmmm, I think it's possible.
If it's possible to check when you buy an upgrade then you can change a spawn script to spawn a more dangerous foe, but I'm not sure if it is possible... hmm.
Time works, but time also stops when you leave a level, so what you do is that you do something on level exit/enter, like, leave a level then when you come back you spawn harder monsters.