Caching the data in-memory for the POS session allows us to not delve into storage complexities right now, when it’s not necessary for the initial MVP iteration. It also solves the issue of when/how clear data, as this just happens with the normal lifecycle when the merchant leaves the POS mode. [...] the next iteration for this solution could be to keep them cached in memory even when the user leaves the POS, and clear them on app restart only.
Reference: pdfdoF-55G-p2