removed secondary encoding to use simple access key check