Optimising proxy generation.