i wouldnt reccomend waking up in the middle of the night to take them.
The body goes into different modes while sleeping and waking up would be messing up those modes.
Im not really sure how many modes there are , but i think there are 3-4
and when ur in the deepest sleep (which is after about 5-6 hours of constant sleep) the body recovers at the best rate...