Better reflection using proxy classes