Library Miniaturization using Static and Dynamic Information