Update make_custom_table_proxy function with this code and problem will be solved with recipe_prototypes/item_prototypes iteration.
local function make_custom_table_proxy(ct_game_key)
local custom_table_proxy_mt = {
__index = function (tbl, k)
return game[ct_game_key][k]
end,
__pairs = function (tbl, k)
local fn = pairs(game[ct_game_key])
return fn
end
}
return setmetatable({}, custom_table_proxy_mt)
end