The SQL standard provides the concept of Persistent Stored Modules, a method to define procedural programming using SQL primitives. The definitions are compiled just in time into the MonetDB Assemblee Language before being merged into the physical query plans for best performance.