Update implementation of check_security_bits