Optimize kernel parsing
