Faster commonness lookup in main and testing notebook