Handling cache for AQ and DE