Optimize slow operations of Stream.
Don't load classes when they are not needed.
Remove use of magic getter.