Optimize getDoubleSpendsFromOutpoints()