Last fixes to algorythm, store all links as https in cache