Added tweak to use different keys for localhost.