Towards a perfect chemical reactor