optimized granularity intervals from nunogil