1. A method, comprising: analyzing, by a processing device, source code associated with an application; determining, in view of the analysis, that a class defined by the source code will be instantiated, wherein the class is instantiated at most once, and wherein the determining is performed during a linking phase of a generation of the application, the generation of the application comprising a compiling phase, an assembling phase, and the linking phase; and converting, by the processing device, the class to a singleton class.