def _initialize_in_memory_store(self):
        if self.writeonly:
            return

        if self._codes is not None:
            return
        initial_size = max(int(1e6), len(self))
        self._codes = Growable(self._recarray(initial_size))