Optimize library.