Kernel Optimizations

The kernel has undergone some small optimizations to make it more memory
efficient.