Handler arrays now sorted if necessary before read instead of (possibly multiple times) after each write