1. A system for reducing the run-time cost of invoking a server page comprising: a server page translation unit configured to translate a server page document into program code; a program code compiler configured to compile said program code into a program object; and, an optimization processor programmed to modify said program code to permit direct invocation of said program object by external program objects, wherein said optimization processor modifies said program code by: stripping a super-class designation for a constructor in said program code; inserting required import statements into said program code; and, modifying at least one method call signature to permit a specification of input and output parameters processed in a corresponding at least one method.