refactor the ram reclaim
Revert "refactor the ram reclaim"

This reverts commit 0c57f93faa768e40315e8f8aec97b0522a79cfe3.
trying to fix video playback problems