secretKey converted to final variable