hds: Use static variables so we do not clash between libraries