Preallocated ligh, ligd, slnd and cnfh
Separated s0e and lig to __constant__