Fixed behaviour when used by TRESOR proxy