Black and white Cookies from baked goods section

a local grocery store sells black and white cookies with the baked goods. These are unwrapped when sold. I asked the store about them and they aren’t baked locally, but come shipped in frozen and individually wrapped. If kosher, does it matter if they are unwrapped at time of purchase or would one need to purchase the frozen, wrapped ones?

Can be problematic.