The onset of energetic particle irradiation in Class 0 protostars