1. A computer-implemented method comprising: generating, at a Point-of-Sale (POS) terminal, a key for a POS peripheral device responsive to detecting a predetermined trigger event; obtaining a configuration file for the POS peripheral device based on the key, wherein the configuration file comprises configuration data defining configuration settings for the POS peripheral device and environmental context information for the POS terminal; assigning a priority level to the configuration file based on a comparative analysis of the configuration data in the configuration file to configuration information stored in a cache at the POS terminal; and configuring a POS application program executing at the POS terminal with the configuration data in the configuration file, wherein the configuration data controls the POS application to update the configuration of the POS application program for the POS peripheral device based on the priority level.