1. A method, performed by a compiler in a closed system at compile time of program code, for optimizing interfaces, the method comprising the steps of: building an interface table that maps each interface to the object types that implement each interface; applying one or more optimizations that are arranged to reduce the interface lookup table's size; and iteratively reapplying the one or more optimizations until no additional transformations to the interface lookup table occur.