sending multiple codes to the consumer products using uno and ir transmitter

Those 5 arrays take up nearly all of the SRAM in an Uno. You should consider storing and retrieving the arrays to/from Progmem. Nick Gammon has a page on using Progmem with arrays.