Fixed classcast exception on queue-store

Removed InMemoryFormat.CACHED.