Leveraging offline data for safe and efficient autonomous navigation in multi-agent environments