Instead of using flat geojson files to serve data, you can upload them into your database from here.
Link to them with geodatasets:{name} as the layer URL.
geodatasets:{name}
You can freely switch to the “Vector Tile” Layer Type too.