Effective memory management for mobile environments