avoiding some byte array 'get position' calls