Is there a way to only store keyframes of only selected bones in poseLib? What bones does "Add New Pose" operator store in Pose Library ?

I am animating with "Blenrig" Character Vincent and it has lots and lots of bones. When I try to store poses it creates keyframes for all the bones whether hidden and in the same layer or even if the whole layer is hiden. Which makes it very heavy. And takes a lot of time while storing each pose.

So I needed clarity on how does "Add New Pose" operator function?

Is there a way to only store keyframes of only selected bones in poseLib?

I even tested it creating a test case added an armature with 3 bones 


Created a PoseLib
Selected one Bone





Added a New Pose





In the Action Editor All the Three bones are keyed
pose library won't save positions of bones with DEF in the beginning of their name. You could try that for a basic ignoring of specific bones.

Or to disable bones in a keyframes 
From:
https://www.blender.org/forum/viewtopic.php?p=107151&amp;sid=ad277a6cd901c3e716346e1bdd51c371#p107151
"Mute the Bone's animation channels in F-Curve Editor and change frame to update 3d view:"

The only other way I can think of is to use a script which grabs all of the keyframes and allows you to modify only parts of that script before being run again.

I suggest you look into scripting and start with some of the codes here: How to get keyframe data from python?