1. A method for optimization of resources within a virtual machine, the method comprising: determining sizes of computing resources available to a virtual machine; based on the sizes of the computing resources, determining optimal data structures for the virtual machine, the optimal data structures including an indexing data structure and a historic data; allocating a Random Access Memory (RAM) and a disk storage to the optimal data structures; and configuring the optimal data structures within the RAM and the disk storage.