Can you avoid querying for a texture location in OpenGL?
By using the exact same syntax as you did for SSBOs:

layout(binding = 0) uniform sampler2D texture_name;


This is a GL 4.2 feature, so if you can use SSBOs, you can use this.