Reduce build time for debug build
Remove global state from loop
Update libtgl to fix secret chat sequence
Refactor global state and API to import user card