made Query Serializable for caching object.