Optimizing options parser