config: Adding some BFS-related optimisations