Optimized kernel