Wip sd filestore optimization

Hopefully, this is fine since it is better to assert here as Index should be populated by get_index().
Returning error and logging will not reveal the problem easily.