Refinery: Active Fine-tuning and Deployment-time Optimization for Contact-Rich Policies