Bitbang performance improvements