[IMP-dev] optimizing restraints for speed