You may have noticed that there are 2 sub categories in Any%
One where all glitches are allowed
And another with no major glitches
This is for good reason, as I have found a glitch that can save over 5 minutes at least. And I will be explaining how to perform it.
Firstly, the glitch in question allows you to complete the same level multiple times and for it to count as separate completions. Basically allowing you to complete a chapter by doing the same level multiple times.
Now for how to perform the glitch. The glitch is very simple. After the character turns back and smiles at the end of the level. Hit restart and do the level again. Make sure to hit restart before transitioning into the next level. If done properly then it would count as a completion as well as allowing you to redo the same level. You can do this as many times as you want for any level.
A note to add is to avoid completing more levels than what the chapter has. For example the tutorial has 6 levels. So avoid completing levels 7+ times. If you do accidentally do this then you have to re-install the game.
Potential:
The basic way to implement this strategy is to just complete the first level multiple times. But there is more optimization to be had. While you can just play the first level until you complete the chapter. You can also complete it 3 times for example and you warp to lvl 4 on the 3rd completion of lvl 1. This means you can make routes and warp directly to the shortest levels or most optimal levels.
Using this information and considering that I already got a 6:27 ish with the basic implementation. I can say that sub 6 is most likely possible with more optimization.
(Extra note: I found that beating castle normally was faster than beating lvl 1 4 times, the optimal route as far as I know is to beat lvl 1 2 times then complete castle normally)