Minimalist hybrid proxy implementation in C (to replace the Lua one)