1. A method, comprising: analyzing source code associated with an application; determining that a class defined by the source code will be instantiated, wherein the class is instantiated at most once; converting the class to a singleton class.