Cached global lookup (speed increase), modulo