Put timing print statements through your entire pa...
# ktor
k
Put timing print statements through your entire path. Bet it's the sync DB code that's messing it up.