A final optimization just for fun.