Few small performance improvements for Sponge.