Memory bloat fix, only call DB on posts with code blocks