Make signature functions work with inputsteams in efficient way.
Remove unued code and comments.
Add benchmark code.
WIP: 01
WIP: 02
WIP: 03