Kernel space memory caching system