Refine elpa management. Reduce repeated package-refresh-contents.