Sleep has been linked with the production of some of the cells linked with immunity. Research also shows an improvement to the formation of immunological memory, which basically means improvement of vaccination effect.