optimize crypto.getRandomValues usage a little