Minor cleanup of InMemoryFormat: added validation in config + minor usage cleanup
InMemoryFormat.CACHED now makes use of byte comparison instead of object comparison
Merge pull request #663 from pveentjer/improvement/3.x/inmemoryformat-cleanup

InMemoryFormat cleanup