Cleanup index writes handling