Update the `diagrams` tool loader file to load the `pairs` library file in optimize mode