Improve reflection performance. Start migrating the sample