Optimiseinputstream