It is rumoured that it depends on the time and how many coins you have picked up. The last time I played it, I tried going as quickly as possible through, and also picking up all coins on each part. It was quite a while ago now though, so I can't actually remember if it worked.