during the time of storing information, how will one account for the decrease in entropy of the gas and yet save the 2nd law of thermodynamics?
In Landauer's/Bennett's thinking, there is no need to account for that - temporary decrease of entropy possible with any memory device is so small it is fluctuation.
There are two commonly used variants of 2nd law. One is the simple but less accurate classical thermodynamics version, where entropy of a system that only exchanges work, not heat, with outside, can't decrease. This is useful and accurate enough for many applications of thermodynamics to macroscopic systems.
There is also the more informed statistical physics version, which takes into account fluctuations: decrease of entropy of such thermodynamic system can happen, but probability of such event is very low, and the greater the entropy drop, the lower the probability.
The idea of Maxwell's demon originally is to break the second variant: maybe there can be a device that takes advantage of the fluctuations and accumulates their effect in single direction that reliably and measurably decreases entropy of the system. If such device was constructed and verified to work, the second variant of 2nd law would become incorrect.
We already know the first variant is overly confident about what cannot happen, because we know about molecules and any mechanical or probabilistic model of them in simulations can result in temporary entropy decrease. It will occur with very low probability, but it is possible.
Landauer argues/assumes that informationally irreversible operations have to be also thermodynamically irreversible, thus erasing $N$ bits of information must increase thermodynamic entropy by something like $Nk_B\ln 2$ (the erasure principle, an interesting, plausible idea which I think is a logical jump, an idea with poor justification).
Bennet adopts the erasure principle and shows it can explain why Maxwell's demon, even it decreases entropy of the gas, overall does not violate 2nd law, because it produces enough entropy to make up for the decrease.
He starts with the idea that if the demon is operating as a thermodynamically reversible machine (which in reality is close to impossible to construct), it can't produce any thermodynamic entropy, so it works as intended, and breaks 2nd law. Now he assumes this breaking is impossible, so any real instance of the demon has to have some irreversibility to it, and Bennet finds it in the fact that 1) it needs to write to memory 2) it has to erase it after some time to continue working 3) this erasure is obviously informationally irreversible, the information can't be reconstructed from the memory after the erasure 4) (erasure principle) this informationally irreversible process has to be also thermodynamically irreversible process (generating thermodynamic entropy).
Bennet then takes this as valid result and claims it solves the problem with the demon: that the modern probabilistic variant of 2nd law is saved because the erasure principle: the thermodynamic entropy produced is enough (is it? this needs some quantitive analysis) to prevent systematic decrease of entropy in the system so the only decrease possible is that consistent with fluctuations.
So I think Landauer and Bennett would answer your question as follows: if the demon just works reversibly (both thermodynamically and informationally) which they assume is possible for some number of cycles, then no entropy production takes place and the demon really decreases entropy of the system. This stops at some point when the memory needs to be erased, because then some entropy (according to the erasure principle) has to be generated.
Now to make things balanced, I don't believe Landauer's and Bennett's arguments are very convincing. As argued by Laszlo Kish et al. in several papers [1],[2], information entropy is different from thermodynamic entropy, freeing memory is not usually done by zeroing memory but by shifting the address of start of the free memory, and even zeroing memory requires at least energy $k_B T \ln 2$ only for those bits that get flipped, not all of them. This means changing bits in memory in the course of operation can't be thermodynamically reversible; if the demon is writing to memory, already then, each bit change requires some generation of thermodynamic entropy.
[1] L. B. Kish, D. K. Ferry, Information entropy and thermal entropy: apples and oranges (2017), J Comput Electron, DOI 10.1007/s10825-017-1044-1
PDF: https://noise.ece.tamu.edu/research_files/info_thermal_entropy_web_published.pdf
[2] L. B. Kish et al. Demons: Maxwell's demon, Szilard's engine and Landauer's erasure-dissipation (2013), Hot Topics in Physical Information (HoTPI-2013) International Journal of Modern Physics: Conference Series Vol. 33 (2014), DOI: 10.1142/S2010194514603640
PDF: https://www.researchgate.net/publication/269339327_Demons_Maxwell's_demon_Szilard's_engine_and_Landauer's_erasure-dissipation