Optimize register