1. A method of generating an optimized set of queries, comprising: determining a first set of queries that collect data from a standard model dataset to an application model dataset, wherein the standard model dataset includes one of a Common Information Model (CIM), a Simple Network Management Protocol (SNMP) and a Network Configuration Protocol (Netconf), and the application model dataset includes one of a Universal Systems Management Initiative (USMi) and a Common Data Model (CDM); determining, from the first set of queries, a second set of queries that collect data from a firmware resource to the standard model dataset; generating, by a computer, a two-tier resource mapping for the first and second sets of queries, converted into one-tier resource mapping by creating a third optimized set of queries that collect data from the firmware resource to the application model dataset; and generating the third optimized set of queries during compilation of a computer program configured to collect data from a data source for a data destination.