AST/StreamIn.pm: optimization