Cache the pointer to RtlGenRandom instead of loading and unloading advapi32 every single time this function is called.