SEA-1252: Memory leak with index schemas