Checking for scheduled callbacks moved to end.
Static structs moved outside of function scope to avoid dynamic allocations.
Only load CA certs if verify option is given.
Added CA certificates file to repo.