Fixed #298 - Added multiple caches' support