Memory footprint reduction for operating system kernels door