Generate IV on demand and prepend to cookie