Default secure lock screen auto timed?

Is there a way to set specific times when the phone uses secure lock?

For example, I'd only like it set between midnight and 8am, but have a regular swipe unlock during the day without having to manually configure it all the time.

I'm rooted too if that helps.