Polynomial Size Bound for Local Gadget Constructions