Guard clear filter on empty presentation
Fix memory leak with cursors
Improved cache management