Performance improvement

Performance improvement regarding https://github.com/Mvied/wordpress-https/issues/16